home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2000 #4
/
Amiga Plus CD - 2000 - No. 4.iso
/
Tools
/
Dev
/
SpeakFreely_Src
/
gsm
/
src
/
toast_lin.c
< prev
next >
Wrap
C/C++ Source or Header
|
2000-05-27
|
655b
|
25 lines
/*
* Copyright 1992 by Jutta Degener and Carsten Bormann, Technische
* Universitaet Berlin. See the accompanying file "COPYRIGHT" for
* details. THERE IS ABSOLUTELY NO WARRANTY FOR THIS SOFTWARE.
*/
/* $Header: /home/kbs/jutta/src/gsm/gsm-1.0/src/RCS/toast_lin.c,v 1.1 1992/10/28 00:15:50 jutta Exp $ */
#include "toast.h"
/* toast_linear.c -- read and write 16 bit linear sound in host byte order.
*/
extern FILE *in, *out;
int linear_input (buf) gsm_signal * buf;
{
return fread( (char *)buf, sizeof(*buf), 160, in );
}
int linear_output P1((buf), gsm_signal * buf)
{
return -( fwrite( (char *)buf, sizeof(*buf), 160, out ) != 160 );
}